import Vue from "vue";

import VueRouter from "vue-router";
import Layout from "@/views/layout";
import HomePage from "@/views/second/HomePage";
import FindHouse from "@/views/second/FindHouse";
import InfoModel from "@/views/second/InfoModel";
import My from "@/views/second/My";

Vue.use(VueRouter);

const router = new VueRouter({
  routes: [
    {
      path: "/layout",
      component: Layout,
      children: [
        {
          path: "homepage",
          component: HomePage,
        },
        {
          path: "findhouse",
          component: FindHouse,
        },
        {
          path: "infomodel",
          component: InfoModel,
        },
        {
          path: "my",
          component: My,
        },
      ],
    },
  ],
});
export default router;
